package com.wangzhixuan.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wangzhixuan.model.Skydrive;
import com.wangzhixuan.model.vo.FileFullVo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;


/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author zhixuan.wang
 * @since 2017-08-22
 */
public interface SkydriveMapper extends BaseMapper<Skydrive> {

	List<Skydrive> selectSkydrivePage(Pagination page, Map<String, Object> params,@Param("sId")Integer sId,@Param("userId")Integer userId,@Param("isShare")Integer isShare);
	
	List<Map<String, Object>> selectFileDetailed(@Param("userId")Integer userId,@Param("fileId")Integer fileId);

	List<Map<String, Object>> selectGXFileDetailed(@Param("userId")Integer userId,@Param("fileId")Integer fileId);
	
	List<Map<String,Object>> selectHistory(@Param("userId")Integer userId);
	
	Map<String,Object> selectDynamic(@Param("userId")Integer userId);
	
	List<Map<String,Object>> dynamicHistory(@Param("userId")Integer userId);
	
	FileFullVo selectFileFull(@Param("Id") Integer Id);
	
	List<String> selectFilName(@Param("pId")Integer pId);
	
	Integer selectFileByName(@Param("pId")Integer pId,@Param("fileName")String fileName);
	
	List<Skydrive> selectSon(@Param("fileId") Integer fileId);
	
}